package com.gxa.community.agent.utils;

import com.gxa.community.agent.config.LinkProperties;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.UUID;
@Component
public class UrlUtils {
    @Autowired
    private LinkProperties linkProperties;
    public  String agentUrl() {
//        String s = UUID.randomUUID().toString();
        //读取配置文件
        String agenturl = linkProperties.getAgenturl();
        String Link = agenturl;
        return Link;
    }

    public  String userUrl() {
        String s = UUID.randomUUID().toString();
        String userurl = linkProperties.getUserurl();
        String Link = userurl+s;
        return Link;
    }
}
